#!/bin/bash

# postinst script for system-library-man
#
# see: dh_installdeb(1)

#set -e

# summary of how this script can be called:
#        * <postinst> \`configure' <most-recently-configured-version>
#        * <old-postinst> \`abort-upgrade' <new version>
#        * <conflictor's-postinst> \`abort-remove' \`in-favour' <package>
#          <new-version>
#        * <postinst> \`abort-remove'
#        * <deconfigured's-postinst> \`abort-deconfigure' \`in-favour'
#          <failed-install-package> <version> \`removing'
#          <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package

PATH=/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
export PATH

if [ "${BASEDIR:=/}" = "/" ]; then
    BASEDIR=""
else
    BASEDIR_OPT="-b $BASEDIR"
fi

case "$1" in
    configure)
        chown root:bin $BASEDIR/usr/share/man/man3
	chown root:bin $BASEDIR/usr/share/man/man3avl
	chown root:bin $BASEDIR/usr/share/man/man3bsm
	chown root:bin $BASEDIR/usr/share/man/man3c
	chown root:bin $BASEDIR/usr/share/man/man3c_db
	chown root:bin $BASEDIR/usr/share/man/man3cfgadm
	chown root:bin $BASEDIR/usr/share/man/man3commputil
	chown root:bin $BASEDIR/usr/share/man/man3contract
	chown root:bin $BASEDIR/usr/share/man/man3cpc
	chown root:bin $BASEDIR/usr/share/man/man3devid
	chown root:bin $BASEDIR/usr/share/man/man3devinfo
	chown root:bin $BASEDIR/usr/share/man/man3dlpi
	chown root:bin $BASEDIR/usr/share/man/man3elf
	chown root:bin $BASEDIR/usr/share/man/man3exacct
	chown root:bin $BASEDIR/usr/share/man/man3ext
	chown root:bin $BASEDIR/usr/share/man/man3fstyp
	chown root:bin $BASEDIR/usr/share/man/man3gen
	chown root:bin $BASEDIR/usr/share/man/man3head
	chown root:bin $BASEDIR/usr/share/man/man3kstat
	chown root:bin $BASEDIR/usr/share/man/man3kvm
	chown root:bin $BASEDIR/usr/share/man/man3lgrp
	chown root:bin $BASEDIR/usr/share/man/man3lib
	chown root:bin $BASEDIR/usr/share/man/man3lib
	chown root:bin $BASEDIR/usr/share/man/man3mail
	chown root:bin $BASEDIR/usr/share/man/man3malloc
	chown root:bin $BASEDIR/usr/share/man/man3mp
	chown root:bin $BASEDIR/usr/share/man/man3nsl
	chown root:bin $BASEDIR/usr/share/man/man3nvpair
	chown root:bin $BASEDIR/usr/share/man/man3pam
	chown root:bin $BASEDIR/usr/share/man/man3pool
	chown root:bin $BASEDIR/usr/share/man/man3proc
	chown root:bin $BASEDIR/usr/share/man/man3project
	chown root:bin $BASEDIR/usr/share/man/man3resolv
	chown root:bin $BASEDIR/usr/share/man/man3rpc
	chown root:bin $BASEDIR/usr/share/man/man3scf
	chown root:bin $BASEDIR/usr/share/man/man3sec
	chown root:bin $BASEDIR/usr/share/man/man3secdb
	chown root:bin $BASEDIR/usr/share/man/man3sip
	chown root:bin $BASEDIR/usr/share/man/man3socket
	chown root:bin $BASEDIR/usr/share/man/man3sysevent
	chown root:bin $BASEDIR/usr/share/man/man3tsol
	chown root:bin $BASEDIR/usr/share/man/man3uuid
	chown root:bin $BASEDIR/usr/share/man/man3vnd
	chown root:bin $BASEDIR/usr/share/man/man3volmgt
	chown root:bin $BASEDIR/usr/share/man/man3xnet
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "postinst called with unknown argument '$1'" >&2
        exit 1
    ;;
esac



# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0

